package org.hotDating.android.individual.service.friends;

import java.lang.ref.WeakReference;
import java.util.ArrayList;

import org.hotDating.android.individual.module.Friend;

import android.R;
import android.database.DataSetObserver;
import android.graphics.BitmapFactory;
import android.content.res.Resources;

public class FriendsService {
	private static ArrayList<Friend> sFriends = new ArrayList<Friend>();
	private static WeakReference<DataSetObserver> sObserver;
	public static ArrayList<Friend> getFriendsList(){
		Friend f = new Friend("Xuxx",BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.sym_action_email),0,"I'm stupid");
		sFriends.add(f);
		f = new Friend("Songjw",BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.ic_dialog_alert),0,"I'm cool");
		sFriends.add(f);
		f = new Friend("zack",BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.star_on),0,"I'm stupid");
		sFriends.add(f);
		f = new Friend("Johney",BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.ic_lock_lock),0,"I'm cool");
		sFriends.add(f);
		f = new Friend("Zhangz",BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.sym_call_outgoing),0,"I'm 2");
		sFriends.add(f);
		f = new Friend("zz",BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.stat_notify_voicemail),0,"I'm very 2");
		sFriends.add(f);
		return sFriends;
	}
	public static void setObserver(DataSetObserver observer) {
        WeakReference<DataSetObserver> obs = new WeakReference<DataSetObserver>(observer);
        sObserver = obs;
    }
}
